package com.silp.labs.cacticlient;

public class Host {
	public int lenght = 0;
	public Graph[] grp = new Graph[100];  
	public String hostname="";
	public Host()
	{
	
	}
	public void AddGraph(Graph a)
	{
		grp[lenght] = a;
		lenght +=1;
	}
	public Boolean CheckGraphExist(String id)
	{
		for (int i = 0; i < lenght; i++) {
			Graph grp1 = grp[i];
			if (grp1.id.trim().equalsIgnoreCase(id.trim()) == true )
			{
				return true;
			}
		}
		return false;
	}
}
